/*******************************************************************************
GSwicher.h

	Author:		LiuDingXi
	e-mail:		liudx@gmail.com
	Date time:	2009-08-07

	Copyright (C) 2009
	All rights reserved.
	
*******************************************************************************/

#ifndef _GSWICHER_H_
#define _GSWICHER_H_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "GScene.h"

class GSwicher
{
public:
	GSwicher();
	virtual ~GSwicher();
	
public:
	bool SceneSrc(GDC* pDC, GScene* pSrc);
	bool SceneTar(GDC* pDC, GScene* pTar);
	bool Swich(UINT nFlag, int nValue);
	void Free();

	bool IsVisible()const;
	void OnDraw(GDC* pDC);
	PMRV ProcMsg(GMsg& refMsg);

	LONG Update(UINT nMillisecond); 

protected:
	GImage*	m_pSrc;
	GImage* m_pTar;

	int		m_nOffsetX;
	int		m_nWidth;
	int		m_nVel;
	UINT	m_nFlag;
};


#endif//_GSWICHER_H_
